﻿using NewRetail.Application.Components.Goods.Entity;
using NewRetail.Application.Components.Platform.Entity;

namespace NewRetail.Application.Components.Warehouse.Model
{
    /// <summary>
    /// 查询条件
    /// </summary>
    public class QueryCategoryWarehouseGoodDto
    {
        //public DateTime? startTime { get; set; }
        //public DateTime? endTime { get; set; }
        public string warehouseID { get; set; }
    }
    /// <summary>
    /// 类别库存查询显示结果
    /// </summary>
    public class CategoryWarehouseGoodShowDto
    {
        public string warehouseID { get; set; }
        public string categoryID { get; set; }
        public string categoryNo { get; set; }
        public string categoryName { get; set; }
        public string warehouseName { get; set; }
        public decimal goodsNum { get; set; }
        /// <summary>
        /// 进货金额/成本金额
        /// </summary>
        public decimal costAmount { get; set; }
        /// <summary>
        /// 售价金额
        /// </summary>
        public decimal sellingPriceAmount { get; set; }
        /// <summary>
        /// 利润
        /// </summary>
        public decimal profit { get; set; }
    }

    /// <summary>
    /// 类别实时库存查询显示结果
    /// </summary>
    public class CategoryRealWarehouseGoodShowDto
    {
        public string warehouseID { get; set; }
        public string goodsID { get; set; }
        public string categoryID { get; set; }
        public string categoryNo { get; set; }
        public string categoryName { get; set; }
        public string warehouseName { get; set; }
        public string supplierID { get; set; }
        /// <summary>
        /// 零售价
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal goodsNum { get; set; }
        /// <summary>
        /// 成本/进货价
        /// </summary>
        public decimal costPrice { get; set; }
        /// <summary>
        /// 成本/进货金额
        /// </summary>
        public decimal costAmount { get; set; }
        /// <summary>
        /// 采购入库/退货数量
        /// </summary>
        public decimal quantity { get; set; }
        /// <summary>
        /// 毛利: (售价-进货价)*数量
        /// </summary>
        public decimal grossProfit { get; set; }
        /// <summary>
        /// 销售/销售退货量
        /// </summary>
        public decimal saleQuantity { get; set; }
        /// <summary>
        /// 销售金额
        /// </summary>
        public decimal saleMoney { get; set; }
        /// <summary>
        /// 折扣金额
        /// </summary>
        public decimal discountMoney { get; set; }

        public GoodsInfo GoodsInfo { get; set; }
        public GoodsCategory GoodsCategory { get; set; }
        public NewRetail.Application.Components.Warehouse.Entity.Warehouse Warehouse { get; set; }
        public Supplier Supplier { get; set; }
    }
}
